struct Person(String);

fn main() {
    let a = Person("Richard Feynman".to_string());
    match a {
        // 报错: 编译器会认为想要匹配 Person(&String), 此时只能用ref
        //Person(&name) => println!("{name} was a great physicist"),
        Person(ref name) => println!("{name} was a great physicist"),
        _ => panic!("Oh no!"),
    }

    let b = a;
}